<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$_title}</h2>
    </div>
    	<form action="{:U('Feedback/editFeedback')}" method="post" class="form-horizontal">
    		<input type="hidden" name="id" value="{$feedback.id}" />
    		<div class="form-item">
            <label class="item-label">用户ID：<span class="check-tips">{$feedback.user_id|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">用户手机：<span class="check-tips">{$feedback.mobile|default=''}</span></label>
        </div>
        <div class="form-item">
            <label class="item-label">反馈信息<span class="check-tips"></span></label>
            <div class="controls">
            	<textarea class="div-desc" readonly>{$feedback.content|default=''}</textarea>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">状态<span class="check-tips">
            	<select name="status" class="input-large">
            		<foreach name="Think.config.FEEDBACK" key="key" item="val">
            			<if condition="$feedback['status'] eq $key">
	            			<option value="{$key}" selected>{$val}</option>
						<else />
							<option value="{$key}">{$val}</option>            			
            			</if>
            		</foreach>
            	</select>
            </span></label>
        </div>
        <div class="form-item">
            <label class="item-label">备注<span class="check-tips"></span></label>
            <div class="controls">
            	<textarea class="div-desc" name="content"></textarea>
            </div>
        </div>
        
        <div class="form-item">
            <label class="item-label">处理记录<span class="check-tips"></span></label>
            <div class="controls">
            	<div class="div-desc" readonly>
            		<foreach name="log" key="key" item="val">
            			<div>
            				<div style=""><strong>{:date('Y-m-d H:i:s', $val['create_time'])}　{$val.admin_name}　{$val.feedback_status_text}</strong></div>
            				<div>{$val.content}</div>
            			</div>
            			<br/>
            		</foreach>
            	</div>
            </div>
        </div>
        
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
		
        //导航高亮
        highlight_subnav('{:U('Feedback/feedbackList')}');
    </script>
</block>
